﻿<Window x:Class="Morphine.MiniModeWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Width="350" Height="350"
        WindowStyle="None"  Background="#01000000"  AllowsTransparency="True" Topmost="{Binding ElementName=TopMostItem, Path=IsChecked}"
        SourceInitialized="WindowSourceInitialized" MouseMove="WindowMouseMove" Activated="WindowActivated" Deactivated="WindowDeactivated" Closed="WindowClosed">
    <Window.ContextMenu>
        <ContextMenu>
            <MenuItem Name="OpenItem" Header="Open..." Click="OpenItemClick"/>
            <MenuItem Name="MainModeItem" Header="Switch to normal mode" Click="MainModeItemClick"/>
            <MenuItem Name="TopMostItem" Header="Show on top of all windows" IsCheckable="True"/>
            <MenuItem Name="CloseItem" Header="Close" Click="CloseItemClick"/>
        </ContextMenu>
    </Window.ContextMenu>
    <Grid Margin="10">
        <!--<Image Name="WindowShadowBottoImage" Source="/Morphine.UI;component/Resources/window_shadow_bottom.png" VerticalAlignment="Bottom" Margin="0,0,0,-15" Width="150" Opacity="0.5"/>-->
        <Image Name="WindowShadowImage" Source="/Morphine.UI;component/Resources/minimode_shadow.png" Stretch="Fill" Margin="-12"/>
        <Ellipse Stroke="Black" Opacity="0.7"/>
        <Ellipse Stroke="White" Margin="1" Opacity="0.7" Fill="#33000000"/>
        <Image Name="AlbumCover" Margin="0" Opacity="0.8" Width="330" Height="330" HorizontalAlignment="Center" VerticalAlignment="Center">
            <Image.OpacityMask>
                <RadialGradientBrush>
                    <GradientStop Color="#FF000000" Offset="0.8"/>
                    <GradientStop Color="#00000000" Offset="1"/>
                </RadialGradientBrush>
            </Image.OpacityMask>
        </Image>
        <Grid Name="MainBarBgGrid" Width="280" Height="130" Margin="0,0,0,20" VerticalAlignment="Bottom">
            <Path Data="{StaticResource mini_mainbar_bg_pathdata}" Stroke="#BF000000" Stretch="Fill" Margin="1" >
                <Path.Fill>
                    <ImageBrush ImageSource="/Morphine.UI;component/Resources/playlist_bg.png" TileMode="Tile" Stretch="Fill" Viewbox="0,0,200,200" Viewport="0,0,200,200" ViewportUnits="Absolute" ViewboxUnits="Absolute"/>
                </Path.Fill>
            </Path>
            <Path Data="{StaticResource mini_mainbar_bg_pathdata}" Stroke="#66FFFFFF" Stretch="Fill"/>
            <TextBlock Name="MediaTitleTextBlock" Text="" FontSize="18" Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,5,20,0" FontFamily="Segoe UI" FontWeight="Light" TextTrimming="CharacterEllipsis"/>
            <TextBlock Name="ArtistNameTextBlock" Text="" FontSize="16" Foreground="#c1c1c1" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="10,25,20,0" FontFamily="Segoe UI" FontWeight="Light" TextTrimming="CharacterEllipsis"/>
        </Grid>
        <Grid Height="61" Width="170" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,0,0,40">
            <Path Data="{StaticResource mini_mainbar_pathdata}" Stroke="#66FFFFFF"  Stretch="Fill" Opacity="1"/>
            <Path Data="{StaticResource mini_mainbar_pathdata}" Stroke="#66000000" Fill="#40C1C1C1" Margin="1" Stretch="Fill" Opacity="1"/>
            <Button Name="PrevButton" Width="48" Height="22" Margin="0,0,87,0" Template="{StaticResource prev_button_template}" IsEnabled="False" Click="PrevButtonClick"/>
            <Button Name="NextButton" Width="48" Height="22" Margin="87,0,0,0" Template="{StaticResource next_button_template}" IsEnabled="False" Click="NextButtonClick"/>
            <ToggleButton Name="PlayButton" Width="46" Height="46" Margin="0,0,0,0" Template="{StaticResource play_button_template}" Background="#0485c3" IsEnabled="False" Click="PlayButtonClick"/>
        </Grid>
    </Grid>
</Window>
